﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" BtbElse to change the interface name "IBtbElseServices" in both code and config file together.
    [ServiceContract]
    public interface IBtbElseServices
    {
        [OperationContract]
        List<BtbElseDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(BtbElseDTO BtbElseDTO);

        [OperationContract]
        bool Delete(BtbElseDTO BtbElse);

        [OperationContract]
        List<BtbElseDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                           out long recordCount);

        [OperationContract]
        List<BtbElseDTO> GetAllBtbElse();

        [OperationContract]
        BtbElseDTO GetBtbElse(string kodeBtbElse);

        [OperationContract]
        List<BtbElseDTO> GetBtbElseList(string kodeBtbElse);

        [OperationContract]
        string GetLastBtbElseNo();

        [OperationContract]
        Decimal GetSatuanPengali(ItemDTO itemDto);

        [OperationContract]
        bool DeleteDetail(BtbElseDetailDTO BtbElseDetailDto);

        [OperationContract]
        bool SendEmail(BtbElseDTO BtbElseDTO, String DestinationFolder);

        [OperationContract]
        void UpdateStatus(BtbElseDTO btbElseDto, Status status);

        [OperationContract]
        IEnumerable<BtbElseDTO> GetListByPeriode(DateTime tglstart, DateTime tglend);

        [OperationContract]
        void Posting(IEnumerable<BtbElseDTO> btbElseDtos);

        [OperationContract]
        void UnPosting(IEnumerable<BtbElseDTO> btbElseDtos);

    }
}